package com.hca.training.zk.javabasic.Thread.SellTickat3_synchronized2;

/**
 * 举例：
 *       火车上厕所，80人抢一个
 */
public class Demo {
    public static void main(String[] arg0)
    {
        SellTicketDemoImpelRunnable sts1=new SellTicketDemoImpelRunnable();
        Thread t1=new Thread(sts1,"窗口1");
        Thread t2=new Thread(sts1,"窗口2");
        Thread t3=new Thread(sts1,"窗口3");
        t1.start();
        t2.start();
        t3.start();
    }
}
